package com.aode.sovo_miniprogram.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

public class Firstclass {
    @TableId(value = "class_id",type = IdType.AUTO)
    private Integer class_id;
    private String class_name;
    private String class_img;

    //1 代表存在的值  0 代表已删除的值
    @TableLogic(value = "1",delval = "0")
    private Integer class_isdelete;

    //创建表的时候自动插入数据 时间
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;

    //更新表的时候自动修改数据 时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date update_time;

    public Firstclass() {
    }

    public Firstclass(Integer class_id, String class_name, String class_img) {
        this.class_id = class_id;
        this.class_name = class_name;
        this.class_img = class_img;
    }

    public Integer getClass_id() {
        return class_id;
    }

    public void setClass_id(Integer class_id) {
        this.class_id = class_id;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getClass_img() {
        return class_img;
    }

    public void setClass_img(String class_img) {
        this.class_img = class_img;
    }

    public Integer getClass_isdelete() {
        return class_isdelete;
    }

    public void setClass_isdelete(Integer class_isdelete) {
        this.class_isdelete = class_isdelete;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "Firstclass{" +
                "class_id=" + class_id +
                ", class_name='" + class_name + '\'' +
                ", class_img='" + class_img + '\'' +
                ", class_isdelete=" + class_isdelete +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
